<?php
use Yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\helpers\Url;
$this->title = '分享';
?>
<div class="container">
    <div class="row">
      
        <?php echo $this->render('_leftnav') ?>

        <div class="col-md-10">
          <div class="page-header clearfix">
            <h1 class="pull-left">分享</h1>
            <div class="pull-right">

                                            
            </div>
          </div>

          <?php echo $this->render('_sitesetting') ?>
          
          <meta http-equiv="pragma" content="no-cache">
	        <?php
	        $form = ActiveForm::begin([
		        'options' => ['class' => 'form-horizontal','id'=>'cloud-setting-form'],
		        'action'=>Url::to(['system/sharesave']),
		        'method'=>'post',
		        'fieldConfig' => [
			        'template' => '<div class="form-group"><div class="col-md-3 control-label">{label}</div><div class="controls col-md-8">{input}{error}<div class="help-block"><div>变量说明：</div><ul><li>{{articletitle}} 为资讯标题</li><li>{{sitename}} 为网校名称</li></ul></div></div></div>'
		        ],
	        ]);
	        ?>
			  <div>
			    <fieldset>

				    <?= $form->field($model, 'consulting_share')->textarea(['rows'=>5,'class'=>'form-control']) ?>

				    <?= $form->field($model, 'class_share')->textarea(['rows'=>5,'class'=>'form-control']) ?>

			    </fieldset>
			  </div>
			  <div class="form-group">
			    <div class="controls col-md-offset-3 col-md-8">
				    <?= Html::submitButton('提交', ['class' => 'btn btn-primary']) ?>
			    </div>
			  </div>
	        <?php ActiveForm::end(); ?>
        </div>
    </div>
</div>
